class People:
    __name = None
    __age = None

    def __init__(self):
        pass

    def __init__(self, name, age):
        self.__name = name
        self.__age = age

    def __lt__(self, other):
        return self.__age < other.__age

    def __str__(self):
        return f"name= {self.__name}, age= {self.__age}"

    def getName(self):
        return self.__name

    def getAge(self):
        return self.__age

    def set_name(self, name):
        self.__name = name

    def set_age(self, age):
        self.__age = age


class Stu(People):
    def __test(self):
        print("private~")

    def study(self):
        print(f"{self.getAge()} {self.getName()} is studying")
        # import winsound
        # winsound.Beep(2000, 3000)


s1 = Stu("xxt", 18)
s2 = Stu("jdz", 20)
# s1.name = "xxt"
s1.study()
# print(s1.age)
print(s1 > s2)



